﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="user_collect_list.aspx.cs" Inherits="admin_infomation_user_collect_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>会员收藏</title>
<meta http-equiv="Cache-Control" content="no-store, must-revalidate" />
<meta http-equiv="Pragma"        content="no-cache" />
<meta http-equiv="Expires"       content="0" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script src="../js/jUtility.js" type="text/javascript"></script>
<script type="text/javascript" src="../common/calendar.js"></script>
    <script src="../js/CheckBox.js" type="text/javascript"></script>
<script type="text/javascript"> 
function delect(){
            var flag=false;
            flag=confirm('此操作不能恢复,您确定删除吗?')
            return flag;
        }
function del(obj){
       if(!ischecked(obj)){
        alert("请选择要删除的用户！")
        return;
       }
            var flag=false;
            flag=confirm('此操作不能恢复,您确定删除吗?')
            return flag;
        }
        function ischecked(obj){
        var chechk=false;
          var frm= obj;
          for(var i=0;i<frm.elements.length;i++){
            var e=frm.elements[i];
            if(e.name!=="allbox"&&e.type=="checkbox"&&e.checked){
            chechk=true;
            }
           }
            return chechk;
        }

function pubdata() {		
	if(!isChecked(pageform.ids)){
		alert("请选择要导出的信息!");
		return false;
	}
	return true;
}
function searchdata(){
    pageform.submit();
    return false;
}
</script>
    </head>

<body>
<form id="pageform" runat="server" method="post">
	
	<input type="hidden" name="id" />
<table width="100%" height="600" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
      <td height="414" align="left" valign="top" class="rightbg">
	    <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
	        <td height="25">
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
	              <tr>
	                <td height="2" bgcolor="#A49B81"></td>
	              </tr>
	              <tr>
	                <td height="22" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav" style="background-repeat:repeat-y; background-position:left; padding-left:6px; ">
	                <asp:Label ID="headers" runat="server" /> 
	                </td>
	              </tr>
	              <tr>
                  <td height="1" bgcolor="#B0C9E8"></td>
                  </tr>
	             </table>
	         </td>
	        </tr>
	        <tr>
	         <td height="16">
	         </td>
	        </tr>
	        <tr>
	          <td>
	                <table border="0" cellpadding="0" cellspacing="0">
	                <tr>
	                    <td width="25">&nbsp;</td>
	                    <td width="100" align="left">
			                    &nbsp;</td>
	                    <td width="100">
			                &nbsp;</td>
	                    <td width="100"></td>
	                    <td width="100"></td>
	                </tr>
	               </table>        
	            </td>
	        </tr>
	         <tr>
	              <td height="16"></td>
	          </tr>
	    <tr>
	    <td align="center">
	    <table width="95%" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC" bordercolordark="#ffffff">
	        <tr>
	            <td width="100%" align="center">
	                    <asp:GridView ID="GridView1" runat="server" Width="100%" border="0" 
                                CellPadding="0"  AutoGenerateColumns="False" AllowPaging="True" 
                                onpageindexchanging="GridView1_PageIndexChanging" DataKeyNames="COLLECTION_ID" 
                                onrowdeleting="GridView1_RowDeleting" a>
	                            <PagerSettings FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页"  PreviousPageText="上一页" Visible="False" />
	                              <Columns>
	                                <asp:TemplateField HeaderText="全选" Visible="False">
	                                <HeaderTemplate>
                                        全选
                                        <input name="allbox" id="allbox" type="checkbox" onclick="CA()" />
                                    </HeaderTemplate>
	                                <ItemTemplate>
                                         <asp:CheckBox ID="DeleteThis" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemStyle CssClass="greytd" />
	                            </asp:TemplateField>
	                            <asp:BoundField  HeaderText="会员昵称" ItemStyle-CssClass="greytd" 
                                    DataField="MEMBER_NICKNAME">
                                  <ItemStyle CssClass="greytd" HorizontalAlign="Center"></ItemStyle>
                                  
                                </asp:BoundField>
	                            <asp:BoundField DataField="TITLE"  HeaderText="文章标题">
                                    <ItemStyle CssClass="greytd" HorizontalAlign="Center" />
                                </asp:BoundField>
	                            <asp:BoundField DataField="ADD_TIME" HeaderText="收藏时间" 
                                    ItemStyle-CssClass="greytd">
                                <ItemStyle CssClass="greytd" HorizontalAlign="Center"></ItemStyle>
                                </asp:BoundField>
	                            <asp:TemplateField HeaderText="管理">
	                                <HeaderTemplate>
                                        管理
                                    </HeaderTemplate>
	                                <ItemTemplate>
                                        &nbsp;
                                        <asp:LinkButton ID="LinkDelect" runat="server" OnClientClick="return delect()" 
                                            CommandName="delete" >删除</asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemStyle CssClass="greytd" />
	                            </asp:TemplateField>
	                        </Columns>
	                        <PagerTemplate>
	                        </PagerTemplate>
	                    </asp:GridView>
	        </td>
	    </tr>
	    <tr>
	        <td align="center" id="pages" runat="server">
    	        <asp:Label ID="label1" runat="server" Text=""></asp:Label>
                 <asp:Label ID="label2" runat="server" Text=""></asp:Label>
                  <asp:linkbutton id="btnFirst" runat="server" causesvalidation="False" 
                     commandargument="First" commandname="Page" text="首页" 
                     onclick="btnFirst_Click1" />
                  &nbsp;
                  <asp:linkbutton id="btnPrev" runat="server" causesvalidation="False" 
                        commandargument="Prev" commandname="Page" text="上一页" onclick="btnPrev_Click" />
                  &nbsp;
                  <asp:linkbutton id="btnNext" runat="server" causesvalidation="False" 
                        commandargument="Next" commandname="Page" text="下一页" onclick="btnNext_Click" />   
                  &nbsp;   
                  <asp:linkbutton id="btnLast" runat="server" causesvalidation="False" 
                        commandargument="Last" commandname="Page" text="尾页" onclick="btnLast_Click" />   
                  &nbsp;&nbsp;   
                  <asp:textbox id="txtNewPageIndex" runat="server" width="20px" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />
                  &nbsp;&nbsp;
                  <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" 
                        commandargument="-1" commandname="Page" text="GO" onclick="btnGo_Click" />
	        </td>
	    </tr>
	</table>
	   </td>
	</tr>  
	</table>
</td>
</tr>  
    
</table>	
</form>
<div style="display:none">

</div>
</body>
</html>
